<div class='screen_buttons'>
<% 
var active = false;
logScreens.each(function(screen) {
  var haspair = screen.hasPair(stream, node);
  if (haspair) { active = true; }
%>
  <input type='checkbox' <% if (haspair) { %>checked='checked'<% } %>title='screen-<%= screen.cid %>'/>
<% }); %>
</div>
<div class='diode floatl <% if (active) { print('active color' + item.color); } %>'></div>
<div class='item_name floatl'><%= item.get('name') %></div>
<div style='clear: both;'></div>